﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sms_modem_control
{
    public class Message
    {
        public static org.smslib.Message.MessageEncodings getMessageEncodingByName(string strName)
        {
            if (strName.ToUpper().Equals("ENC7BIT"))
            {
                return org.smslib.Message.MessageEncodings.ENC7BIT;
            }
            else if (strName.ToUpper().Equals("ENC8BIT"))
            {
                return org.smslib.Message.MessageEncodings.ENC8BIT;
            }
            else if (strName.ToUpper().Equals("ENCCUSTOM"))
            {
                return org.smslib.Message.MessageEncodings.ENCCUSTOM;
            }
            else if (strName.ToUpper().Equals("ENCUCS2"))
            {
                return org.smslib.Message.MessageEncodings.ENCUCS2;
            }
            else { 
                 return org.smslib.Message.MessageEncodings.ENC7BIT;
            }
        }
    }
}
